package com.probiz.estore.sales.dao;

import java.util.List;

import com.probiz.estore.common.model.sales.GiftCertificate;
import com.probiz.estore.core.dao.GenericDao;
import com.probiz.estore.core.search.SearchCriteria;
import com.probiz.estore.sales.model.GiftCertificateSearchCriteria;
/**
 * GiftCertificate Data Access Object (DAO) interface.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 */
public interface GiftCertificateDao extends GenericDao<GiftCertificate> {
	/**
	 * 根据礼券号码获得礼券实体
	 * @param giftCertificateNo
	 * @return
	 */
    public GiftCertificate getGiftCertificate(String giftCertificateNo);
    /**
     * 后台搜索礼券
     * @param _searchCriteria
     * @param _giftCertificateSearchCriteria
     * @return
     */
    public List<GiftCertificate>  searchGiftCertificates(SearchCriteria _searchCriteria, GiftCertificateSearchCriteria _giftCertificateSearchCriteria);
    /**
     * 判断是否有重复的giftCertificateNo
     * @param giftCertificateNo
     * @return
     */
    public boolean existGiftCertificateNo(String giftCertificateNo);
}
